import React from 'react';
import ReactDOM from 'react-dom';
import Child from './Child';
export default class Parent extends React.Component {
    constructor(props) {
        super(props);
      this.state={
          email:""
      }
    }
   handleChange(event){ 
  
        this.setState({email: event.target.value});
   }

    render() {
      return (
        <div>
           <p>{this.state.email}</p>
           <Child handleChange={this.handleChange.bind(this)} />
        </div>

      )
    }
}
